using System;

namespace RBAC.Read.Api.Application.Dto.ERP
{
    /// <summary>
    /// 采购订单与物料联查行（以明细为行）
    /// </summary>
    public class PurchaseOrderWithMaterialDto
    {
        /// <summary>
        /// 采购订单ID
        /// </summary>
        public long PurchaseOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocCode { get; set; }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public string supplierId { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime docDate { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string docStatus { get; set; }

        /// <summary>
        /// 供应商名称（联表或从supplierId回退）
        /// </summary>
        public string? SupplierName { get; set; }

        /// <summary>
        /// 采购物料ID
        /// </summary>
        public long PurchasingMaterialId { get; set; }
        /// <summary>
        /// 文档编号
        /// </summary>
        public string? DocumentaryNumber { get; set; }
        /// <summary>
        /// 计划订单编号
        /// </summary>
        public string? PlannedOrderNumber { get; set; }
        /// <summary>
        /// 牙料编码
        /// </summary>
        public string? materialCode { get; set; }
        /// <summary>
        /// 牙料名称
        /// </summary>
        public string? materialName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? modelSpec { get; set; }
        /// <summary>
        /// 主单位
        /// </summary>
        public string? mainUnit { get; set; }
        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime demandDate { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int qty { get; set; }
        /// <summary>
        /// 到货数量
        /// </summary>
        public int arrivalQty { get; set; } 

        /// <summary>
        /// 单价（物料行）
        /// </summary>
        public decimal unitPrice { get; set; }

        /// <summary>
        /// 金额（物料行）
        /// </summary>
        public decimal amount { get; set; }



    }
}
